using System;
using System.Text;

namespace OVS.BusinessObjects
{
	[Serializable()]
	public partial class Image_Details
	{
		private int _imde_id;

		public int imde_id
		{
			get { return _imde_id; }
			set { _imde_id = value; }
		}

		private int _imha_id;

		public int imha_id
		{
			get { return _imha_id; }
			set { _imha_id = value; }
		}

		private Nullable<Double> _imde_sizeH;

		public Nullable<Double> imde_sizeH
		{
			get { return _imde_sizeH; }
			set { _imde_sizeH = value; }
		}

		private Nullable<Double> _imde_sizeL;

		public Nullable<Double> imde_sizeL
		{
			get { return _imde_sizeL; }
			set { _imde_sizeL = value; }
		}

		public Image_Details()
		{ }

		public Image_Details(int imde_id,int imha_id,Nullable<Double> imde_sizeH,Nullable<Double> imde_sizeL)
		{
			this.imde_id = imde_id;
			this.imha_id = imha_id;
			this.imde_sizeH = imde_sizeH;
			this.imde_sizeL = imde_sizeL;
		}

		public override string ToString()
		{
			return "imde_id = " + imde_id.ToString() + ",imha_id = " + imha_id.ToString() + ",imde_sizeH = " + imde_sizeH.ToString() + ",imde_sizeL = " + imde_sizeL.ToString();
		}

		public partial class imde_idComparer : System.Collections.Generic.IComparer<Image_Details>
		{
			public SorterMode SorterMode;
			public imde_idComparer()
			{ }
			public imde_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Image_Details> Membres
			int System.Collections.Generic.IComparer<Image_Details>.Compare(Image_Details x, Image_Details y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.imde_id.CompareTo(x.imde_id);
				}
				else
				{
					return x.imde_id.CompareTo(y.imde_id);
				}
			}
			#endregion
		}
		public partial class imha_idComparer : System.Collections.Generic.IComparer<Image_Details>
		{
			public SorterMode SorterMode;
			public imha_idComparer()
			{ }
			public imha_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Image_Details> Membres
			int System.Collections.Generic.IComparer<Image_Details>.Compare(Image_Details x, Image_Details y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.imha_id.CompareTo(x.imha_id);
				}
				else
				{
					return x.imha_id.CompareTo(y.imha_id);
				}
			}
			#endregion
		}
	}
}
